package com.fly.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Auther: Orchid
 * @Date: 2019/11/27 14:13
 * @Description:
 */
public class Task {

    private Integer taskId;

    private String taskNo;//任务NO

    private String taskName;//任务名称

    private Circuitry circuitry;//对应线路

    private Users users;//任务下发人

    private TaskPoleRelation taskPoleRelation;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createDate;//任务下发时间

    //    private Integer taskState;//任务状态 1 待分配 2 已分配 3 执行中 4 已完成 5 驳回
    private SystemPropertiesValue systemPropertiesValue;

    //    任务完成时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date finishDate;

    //    任务是否取消 1否 2是   巡检任务才有
    private Integer isCancel;

    //    任务类型 1.巡检任务 2.消缺任务
    private Integer taskType;

    //    任务备注
    private String taskNote;

    //    任务描述   消缺任务才有
    private String taskDescribe;

    public TaskPoleRelation getTaskPoleRelation() {
        return taskPoleRelation;
    }

    public void setTaskPoleRelation(TaskPoleRelation taskPoleRelation) {
        this.taskPoleRelation = taskPoleRelation;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public String getTaskNo() {
        return taskNo;
    }

    public void setTaskNo(String taskNo) {
        this.taskNo = taskNo;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Circuitry getCircuitry() {
        return circuitry;
    }

    public void setCircuitry(Circuitry circuitry) {
        this.circuitry = circuitry;
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public SystemPropertiesValue getSystemPropertiesValue() {
        return systemPropertiesValue;
    }

    public void setSystemPropertiesValue(SystemPropertiesValue systemPropertiesValue) {
        this.systemPropertiesValue = systemPropertiesValue;
    }

    public Date getFinishDate() {
        return finishDate;
    }

    public void setFinishDate(Date finishDate) {
        this.finishDate = finishDate;
    }

    public Integer getIsCancel() {
        return isCancel;
    }

    public void setIsCancel(Integer isCancel) {
        this.isCancel = isCancel;
    }

    public Integer getTaskType() {
        return taskType;
    }

    public void setTaskType(Integer taskType) {
        this.taskType = taskType;
    }

    public String getTaskNote() {
        return taskNote;
    }

    public void setTaskNote(String taskNote) {
        this.taskNote = taskNote;
    }

    public String getTaskDescribe() {
        return taskDescribe;
    }

    public void setTaskDescribe(String taskDescribe) {
        this.taskDescribe = taskDescribe;
    }

}
